<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>只因华太美</title>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        /* Global styles */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        /* Header styles */
        header {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        nav li {
            display: inline-block;
            margin-right: 20px;
            margin-left: 20px;
            margin-top: 20px;
        }



        nav a {
            color: #fff;
            text-decoration: none;
        }

        h1,
        h2 {
            margin-top: 0;
        }

        /* Section styles */
        section {
            padding: 50px;
        }

        ul {
            list-style-type: disc;
            margin-left: 20px;
        }

        section li {
            margin: 10px 20px;
        }

        /* Footer styles */
        footer {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        /* Carousel styles */
        #myCarousel {
            height: 400px;
            width: 70%;
            /* Set the width to 70% */
            margin: 0 auto;
            /* Center the carousel */
        }

        .carousel-inner img {
            width: 100%;
            height: 100%;
            /* Make sure all images fill the carousel container */
        }

        .carousel-caption {
            background-color: rgba(0, 0, 0, .5);
            bottom: 0;
            left: 0;
            padding: 10px 15px 5px;
            position: absolute;
            right: 0;
            margin-bottom: 100px;
        }

        .icon-bar {
            background-color: #ddd;
            height: 3px;
            margin-top: 5px;
            transition: all 0.2s ease-in-out 0s;
            width: 25px;
            box-shadow: 1px 1px rgba(0, 0, 0, 0.5);
            /* Add a box shadow */
        }

        .active .icon-bar {
            background-color: #fff;
        }

        .carousel-indicators li {
            background-color: transparent;
            /* Set the background color to transparent */
            border: none;
            height: 12px;
            margin: 0px 5px;
            width: 12px;
            border-radius: 50%;
            /* Add a border radius to make them round */
            box-shadow: inset 0 0 0 2px #ddd;
            /* Add a box shadow */
        }

        .carousel-indicators .active {
            background-color: #333;
            box-shadow: inset 0 0 0 2px #333;
            /* Add a box shadow for active indicators */
        }

        .carousel-control.left,
        .carousel-control.right {
            background-image: none;
            color: #b7b1b1;
            margin-top: 100px;
            text-shadow: 0px 0px 5px rgba(0, 0, 0, .5);
            /* Add a text shadow */
        }

        .carousel-control:hover,
        .carousel-control:focus {
            color: #fff;
            outline: none;
            text-shadow: none;
            /* Remove the text shadow on hover/focus */
        }

        .carousel-control.left span {
            margin-right: 5px;
        }

        .carousel-control.right span {
            margin-left: 5px;
        }

        .active .icon-bar {
            background-color: #fff;
        }

        @media (max-width: 767px) {
            .carousel-caption {
                background-color: rgba(0, 0, 0, .7);
                padding: 5px;
            }

            .carousel-caption h3 {
                font-size: 1.4em;
            }

            .carousel-caption p {
                font-size: 1.2em;
            }
        }

        /* Customize the carousel indicators */
        .carousel-indicators li {
            background-color: white;
            border: none;
            box-shadow: none;
            width: 15px;
            height: 15px;
            margin: 3px;
            border-radius: 50%;
        }

        .carousel-indicators .active {
            background-color: #333;
            box-shadow: none;
        }

        /* Add shadow to left and right controls */
        .carousel-control.left,
        .carousel-control.right {
            background-color: #333;
            color: #fff;
            padding: 6px 12px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            text-shadow: none;
            font-size: 24px;
            /* Increase the font size */
        }

        .carousel-control.left {
            left: 0;
        }

        .carousel-control.right {
            right: 0;
        }

        #slider .item {
            position: relative;
            display: none;
            width: 100%;
            height: 400px;
            background-size: cover;
            background-position: center;
        }

        #slider .item.active {
            display: block;
        }

        #slider .carousel-caption {
            left: auto;
            right: 50%;
            transform: translateX(50%);
            bottom: 20px;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 6px 12px;
            z-index: 10;
            text-shadow: none;
            font-size: 24px;
            /* Increase the font size */
        }

        img {
            max-width: 500px;
            height: auto;
            border: #333;
            margin-right: 200px;
        }

        .left-align {
            float: left;
        }

        a {
            margin-top: 20px;
            color: black;
        }

        a:hover {
            text-decoration: none;
            color: black;
        }


        /* Hide the slide arrows on mobile screens */
        @media (max-width: 767px) {

            .carousel-control.left,
            .carousel-control.right {
                display: none;
            }
        }

        .article-container {
            display: flex;
            align-items: center;
        }

        .article-image {
            margin-right: 20px;
            /* add some spacing between the image and text */
        }

        .article-text {
            flex-grow: 1;
            /* make the text take up all remaining space */
        }

        @media only screen and (max-width: 768px) {
            .article-container {
                flex-direction: column;
                /* stack the image and text vertically on small screens */
                align-items: flex-start;
                /* align them to the left */
            }

            .article-image {
                margin-bottom: 20px;
                /* add some spacing between the image and text on small screens */
            }
        }
    </style>
</head>

<body>
    <header>
        <h1>只因华太美在线oj平台</h1>
        <nav>
            <ul>
                <li><a href="/login">登录/注册</a></li>
                <li><a href="/about">关于我们</a></li>
                <li><a href="/call">联系我们</a></li>
            </ul>
        </nav>
    </header>

    <section id="slider">
        <div id="myCarousel" class="carousel slide" data-ride="carousel">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>

            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
                <div class="item active">
                    <a href="https://www.luogu.com.cn/contest/113611"><img src="https://ipic.luogu.com.cn/lgr143.png"
                            alt="Slide 1"></a>
                    <div class="carousel-caption">
                    </div>
                </div>

                <div class="item">
                    <a href="https://leetcode.cn/leetbook/detail/deep-learning-java-from-bug/"><img
                            src="https://pic.leetcode.cn/1680490387-RHrUYs-output.lin%20(1).png?x-oss-process=image%2Fformat%2Cwebp"
                            alt="Slide 2"></a>
                    <div class="carousel-caption">
                    </div>
                </div>

                <div class="item">
                    <a href="https://www.luogu.com.cn/discuss/616192"><img src="https://ipic.luogu.com.cn/yugu23s.png"
                            alt="Slide 3">/a>
                        <div class="carousel-caption">
                        </div>
                </div>
            </div>

            <!-- Left and right controls -->
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                <span class="icon-bar"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                <span class="icon-bar"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
    </section>

    <section>
        <h2>精选文章</h2>
        <hr>
        <div class="article-container">
            <div class="article-image">
                <img src="https://oi-wiki.org/images/wordArt.webp">
            </div>
            <div class="article-text">
                <ul>
                    <li><a href="https://oi-wiki.org/string/match/">字符串匹配问题以及它的解法</a></li>
                    <li><a href="https://oi-wiki.org/string/main-lorentz/">Main–Lorentz 算法基本介绍和应用</a></li>
                    <li><a href="https://oi-wiki.org/string/ac-automaton/">AC 自动机和字典树的介绍</a></li>
                    <li><a href="https://oi-wiki.org/dp/number/">一文带你入门数位 DP</a></li>
                </ul>
            </div>
        </div>
    </section>


    <section>
        <h2 class="title">更多精彩内容请登录后查看</h2>
        <hr>
        <p>点击上方导航栏登录/注册即可登录</p>
        </ul>
    </section>

    <footer>
        <p>&copy; My Homepage 2023</p>
    </footer>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Activate the carousel -->
    <script>
        $(document).ready(function () {
            $('.carousel').carousel({
                interval: 5000 // Change slide every 5 seconds
            })
        });
    </script>

</body>

</html>